package com.bw.zcb.mvp.base.presenter;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 *  P层顶层接口,定义P层公共部分
 *  用LifecycleObserver框架实现presenter下方法与activity或fragment的生命周期绑定
 * */
public interface IPresenter extends LifecycleObserver {
    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void Destroy();
}
